#include <stdint.h>
#include <stdio.h>
#include <linux/types.h>

int main(void) {
    uint8_t buf[4] = {1,2,3,4};
    uint32_t a = *((uint32_t*)buf);
    uint32_t b = be32_to_cpu(buf);
    printf("a = %d\r\n", a);
    printf("b = %d\r\n", b);

}



